/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.ismaila.designPatterns.structural.decorator;

/**
 *
 * @author Chelsea
 */
public class WingDecorator extends AnimalDecorator {
    public WingDecorator(Animal animal){
super(animal);
    }
@Override
public String describe(){
 String species;
 String action;
 species = animal.describe();
 action = fly();
 
 return species + "Ihavewings." + action; 
}
public String fly(){
return "Icanfly.";
}

}
